package my.study.java.lang.String;

public class StringSpiltEx03 {
	/**
	 * String.split 将空串设为null，而非""
	 * @param args
	 */
	public static void main(String[] args) {
		String s = ";1;;2;3;";
		String [] ss = s.split(";");
		for (String t : ss) {
			if (t == null) {
				System.out.println("It is null");
			} else {
				System.out.println("It is not null: " + t);
			}
		}

	}
}
